package com.ms.p2p.provider.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.ms.p2p.bean.PageBean;
import com.ms.p2p.entity.member.SmsMessage;
import com.ms.p2p.provider.SmsRecordProvider;
import com.ms.p2p.service.impl.SmsRecordServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * Created by daimajia on 2015/4/19 添加dubbo接口.
 */
@Service
public class SmsRecordProviderImpl implements SmsRecordProvider {
    @Autowired
    SmsRecordServiceImpl smsRecordService;

    public int insert(SmsMessage map) {
        return smsRecordService.insert(map);
    }

    public String deleteByIds(String ids) {
        return smsRecordService.deleteByIds(ids);
    }

    public int update(SmsMessage map) {
        return smsRecordService.update(map);
    }

    public List findPager(String mobilePhone, String begin_date, String end_date, PageBean page) {
        return smsRecordService.findPager(mobilePhone,begin_date,end_date,page);
    }

    public int findCount(String mobilePhone, String begin_date, String end_date) {
        return smsRecordService.findCount(mobilePhone,begin_date,end_date);
    }
}
